﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MainPage.master" AutoEventWireup="true" CodeFile="GoodsPlacesManage.aspx.cs" Inherits="Manage_GoodsPlacesManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/GoodsPlacesManage.js"></script>
<script type="text/javascript">
    ModelOfGoodsPlace =<%=new GoodsPlaces().ToJsonString() %>;
</script>


<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <td colspan="5" align="left" class="HeadTitle">&gt;&gt;产地管理</td>
  </tr>
  <tr class="TableHeadRow">
    <td width="60" align="center">序号</td>
    <td align="left">产地名称</td>
    <td width="60" align="center">状态</td>
    <td width="120" align="center">创建日期</td>
    <td width="150" align="center">管理 [<a onclick="Add();" href="javascript:void(0);" class="red">+添加产地</a>]</td>
  </tr>

  <%
      if (listOfPlaces != null)
      {
          for (int i = 0; i < listOfPlaces.Count; ++i)
          {
             GoodsPlaces d = listOfPlaces[i];
   %>
  <tr  onmouseover="this.style.backgroundColor='#F2F2F2';" onmouseout="this.style.backgroundColor='#FFFFFF';">
    <td align="center"><%=i+1 %>.</td>
    <td align="left"><a href="javascript:void(0);" onclick="Edit(<%=d.GoodsPlaceID%>);" ><%=d.PlaceName%></a></td>
    <td align="center"><%=d.Status %></td>
    <td align="center"><%=d.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
    <td align="center">[ <a href="javascript:void(0);" onclick="Edit(<%=d.GoodsPlaceID%>);" >编辑</a> ] [ <a href="javascript:void(0);" onclick="Delete(<%=d.GoodsPlaceID%>);" class="red">删除</a> ] </td>
  </tr>
   <%  }
      }
      else
      { %>
  <tr>
    <td colspan="5" align="center">[ <span class="red bold">系统未找到任何产地信息!</span> ]</td>
    </tr>
    <% } %>
</table>
</asp:Content>

